package ugraph;

import java.util.HashSet;
import java.util.Set;

import avp.GameConstants;

public class Node implements UGraphComponent<Edge> {
	
	private Set<Edge> edges= new HashSet<Edge>();
	private int xLocation;
	private int yLocation;
	private static int nextX= GameConstants.WIDTH;
	private static int nextY= GameConstants.HEIGHT;
	public String name;
	
	Node(String n) {
		//change this
		name= n;
		//set next location automatically?
		//xLocation= nextX;
		//yLocation= nextY;
	}

	public Set<Edge> getAdjacent() {
		return edges;
	}
	
	public void setEdge(Edge e){
		edges.add(e);
	}
	
	public void setLocation(int x, int y){
		xLocation= x;
		yLocation= y;
	}
	
	public int getXLoc(){
		return xLocation;
	}
	
	public int getYLoc() {
		return yLocation;
	}
	
	

}
